package com.lottery.game.core.model.dto.game;

import com.lottery.game.common.BaseObject;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author : yinlin
 * @version : 1.0
 * @date : 2019-02-18 16:10
 * @Description :
 * @Copyright : Copyright (c) 2018
 * @Company : KeRuYun Technology(Beijing) Chengdu Co. Ltd.
 * @link : com.runshang.apps.cloudgame.model.to.GameTypeTO
 */
@NoArgsConstructor
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder
@Getter
@Setter
@ApiModel(value = "游戏类型MODEL",description = "游戏类型")
public class GameTypeTO extends BaseObject {
    /**
     * 游戏类型编号
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty(value = "游戏类型编号",example = "0dc8c24b01944ea595296a0e8f31df2c")
    private String id;

    /**
     * 游戏类型编码
     */
    @Column(name = "code")
    @ApiModelProperty(value = "游戏类型编码",example = "LOTTERY")
    private String code;

    /**
     * 游戏名称
     */
    @Column(name = "name")
    @ApiModelProperty(value = "游戏名称",example = "PC28系列")
    private String name;

    List<GameTypePlayingRelationTO> playings;
}
